/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.member.entity.LoginHistory
   Module Description   :

   Date Created      : 2009/11/22
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */
package com.yaodian100.ec.member.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author feeling.wang
 * 
 */
@Entity
@Table(name = "EC_MEMBER_LOGIN_HISTORY")
public class LoginHistory extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3456459151352739706L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_member_login_history")
	@SequenceGenerator(name = "seq_ec_member_login_history", sequenceName = "SEQ_EC_MEMBER_LOGIN_HISTORY")
	@Column(name = "ID")
	private Long id;

	@Column(name = "MEMBER_ID", length = 10)
	private String memberId;

	@Column(name = "LOGIN_ID", length = 100, nullable = false)
	private String loginId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LOGIN_TIME", nullable = false)
	private Date loginTime;

	/**
	 * 0:登入成功 1:验证码错误 2:密码错误
	 */
	@Column(name = "IS_SUCCESS", length = 1)
	private String isSuccess;

	@Column(name = "CLIENT_IP", length = 100)
	private String clientIp;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public String getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(String isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
}